home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex59.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  212 b   |  14 lines

  1. Program Example59;
  2.  
  3. { Program to demonstrate the Ptr function. }
  4.  
  5. Var P : ^String;
  6.     S : String;
  7.     
  8. begin
  9.   S:='Hello, World !';
  10.   P:=Ptr(Seg(S),Longint(Ofs(S)));
  11.   {P now points to S !}
  12.   Writeln (P^);
  13. end.
  14.